package com.cy.cuiyang_admin.pojo;

import com.cy.cuiyang_admin.poi.annotation.Excel;
import lombok.Data;
import org.apache.solr.client.solrj.beans.Field;

import java.io.Serializable;
import java.util.Date;

@Data
public class EmpEntity implements Serializable {////必须实现可序列化接口，要在网络上传输

    /**
     * ----@Field("id")----使用这个注释，里面的名字是根据你在solr数据库中配置的来决定
     */
    @Field("id")
    @Excel(name = "序号")
    private int id;

    @Field("name")
    @Excel(name = "姓名")
    private String name;

    @Field("age")
    @Excel(name = "年龄")
    private int age;

    @Field("sex")
//    @Excel(name = "性别")
    private int sex;

    @Excel(name = "性别")
    private String sexs;

    @Field("job")
    @Excel(name = "工作")
    private String job;

    private Date createTime;

    @Excel(name = "更新时间")
    private Date updateTime;

}
